<ion-view view-title="登录" name="login-view" hide-nav-bar="true">
  <ion-content overflow-scroll="true" class="no_scorll">

    <!--登录页面需要用到类似qq登录的闪烁背景 start-->
  <!--  <script src="js/Utils/flashbg/cavas.js" type="text/javascript"></script>
    <script src="js/Utils/flashbg/flashat.js" type="text/javascript"></script>-->
    <!--登录页面需要用到类似qq登录的闪烁背景 end-->

    <div class="login_container">
      <div class="top">

      </div>
    <form name="loginform" novalidate>
      <div class="mid">
        <div class="list list-inset list-inset-cust">
          <label class="item item-input item-border-cust">
            <input type="text" placeholder="请输入工号" name="username" id="username" ng-model="loginData.staffId" required>
          </label>
        </div>
        <div class="list list-inset list-inset-cust">
          <label class="item item-input item-border-cust">
            <input type="password" placeholder="请输入密码" name="userpwd" id="userpwd" ng-model="loginData.password">
          </label>
        </div>
        <div class="list list-inset list-inset-cust">

          <div class="item item-input-inset">
            <label class="item-input-wrapper">
              <input type="text" placeholder="请输入验证码" name="msgcode" id="msgcode" ng-model="loginData.randomNum"  ng-disabled="enWrite" required>
            </label>
            <a class="button button-small button-positive" ng-disabled='!loginform.username.$valid||hqyzm!="获取验证码"' ng-click="doGenerateSmsVerifyCode()">
              {{hqyzm}}<!--ng-disabled='!loginform.username.$valid||hqyzm!="获取验证码"'-->
            </a>
          </div>
          <div class="row margin-itop-cust" >
            <div class="col col-33 login-algin-left-cust">
              <input  id="jzmm"  type="checkbox"  ng-true-value="'yes'" ng-false-value="'no'" ng-model="loginData.chkrempwd" ng-click="doimg()" />
              记住密码
            </div>
            <div class="col col-75 login-algin-right-cust">验证码有效期为5分钟</div>
          </div>
          <!--<div>验证码有效期为5分钟</div>-->
          <!--<label class="item item-input">-->
            <!--<input type="password" placeholder="请输入验证码" name="msgcode" id="msgcode" ng-model="loginData.msgcode">-->
          <!--</label>-->
        </div>
        <br>
        <div class="row row-20">
          <div class="col col-75padding">
            <a class="button button-block button-login-cust" ng-click="doLogin()"  ng-disabled="!loginform.msgcode.$valid">登录</a>
            <!--<a class="button button-block button-login-cust" ng-click="doLogin()" >登录</a>-->
          </div>
        </div>
      </div>
      </form>
    </div>



  </ion-content>
</ion-view>
